home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8229 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  967 b 

  1. Path: news.iadfw.net!usenet
  2. From: Larry Weiss <lfw@iadfw.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie doesn't understand compiler error
  5. Date: Sat, 02 Mar 1996 09:50:10 -0600
  6. Organization: ...
  7. Message-ID: <31386E32.47C9@iadfw.net>
  8. References: <Pine.SUN.3.91.960301153010.11258B-100000@pioneer.uspto.gov> <31378ECB.3B81@oc.com> <4h8cle$cn4@solutions.solon.com>
  9. NNTP-Posting-Host: dal12-05.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Peter Seebach wrote:
  16.  > 
  17.  > >First off, you may have made a typo here, but the correct declaration of
  18.  > >main() is
  19.  > >  main( int argc, char *argv[] )
  20.                   ^           ^
  21.  > 
  22.  > Now, now.  There's nothing *wrong* with the newbie's definition.
  23.  > Sure, it's stupid, unconventional, misleading, and a likely
  24.  > typo.  But there's nothing *wrong* with it.
  25.  > 
  26.  
  27.  
  28. Yep, change "correct" to "traditional", rewind, and hit play.
  29.